const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  //当前登录用户的角色分配
  roles: (state)=>{
      return state.user.roles
  }
}
export default getters
